﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using EF.Model;

public partial class _Default : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CheckSession();

        if (!IsPostBack)
        {
            lblName.Text = Session["rname"].ToString();

            switch (Session["lang"].ToString())
            {
                case ConstCollection.LANG_CN:
                    lblWelcome.Text = "欢迎您:";
                    lnkLogout.Text = "注销";
                    lnkChangePwd.Text = "修改密码";
                    break;
                case ConstCollection.LANG_EN:
                    lblWelcome.Text = "Welcome:";
                    lnkLogout.Text = "Logout";
                    lnkChangePwd.Text = "Change Password";
                    break;
                case ConstCollection.LANG_JA:
                    break;
            }
        }
    }
}
